import { RegisterPage } from '../root';
import { schema as IndexSchema } from './list';
import { schema as createSchema } from './create';
import { schema as editSchema } from './edit';
import { schema as settingSchema } from './settings';
import { schema as viewSchema } from './view';


RegisterPage({
    path: 'platform',
    label: '平台管理',
    icon: 'fa fa-university',
    acl: 'platform:admin',
    children: [
        {
            path: 'list',
            label: '平台列表',
            schema: IndexSchema,
            url: '/platform/list',
            acl: 'org:admin',
        },
        {
            path: '/platform/edit/:id',
            label: '修改平台',
            acl: 'org:edit',
            schema: editSchema
        },
        {
            path: '/platform/setting/:id',
            label: '平台设置',
            acl: 'org:setting',
            schema: settingSchema
        },
        {
            path: '/platform/view/:id',
            label: '查看平台',
            schema: viewSchema,
            acl: 'org:view',
        },
        {
            path: 'create',
            label: '创建平台',
            schema: createSchema,
            url: '/platform/create',
            acl: 'org:create',
        }
    ]
});
